package com.yxt.dispatch.service.impl;

import com.yxt.dispatch.entity.ConnectionEntity;
import com.yxt.dispatch.mapper.ConnectionMapper;
import com.yxt.dispatch.service.ConnectionService;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yxt.common.utils.PageUtils;
import com.yxt.common.utils.Query;


@Service("connectionService")
public class ConnectionServiceImpl extends ServiceImpl<ConnectionMapper, ConnectionEntity> implements ConnectionService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ConnectionEntity> page = this.page(
                new Query<ConnectionEntity>().getPage(params),
                new QueryWrapper<ConnectionEntity>()
        );

        return new PageUtils(page);
    }

}